package com.sand.feign;

import com.sand.dto.Owner.signSelect;
import com.sand.entity.shopping.shopping;
import com.sand.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("juao-shopping")
public interface ShoppingFeign {

    //根据ids返回所有商品
    @PostMapping("/shopping/select")
    ResponseResult<List<shopping>> select(@RequestBody Integer[] ids);


    //计算商品材料费用
    @PostMapping("/shopping/materialsmoney")
    ResponseResult<Integer> MaterialsMoney(@RequestBody List<signSelect> signSelect);

}
